package com.cjr.ddp.dao;

import com.cjr.ddp.entity.DictTarget;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author cjr
 * @date Created in 2020-03-05 20:38
 * @description
 * @modified By
 */
@Mapper
public interface PageDao {
    /**
     * @param year
     * @param pageid
     * @return java.util.List<com.cjr.ddp.entity.DictTarget> 获取页面指标数据
     * @throws
     * @author cjr
     * @date 2020-03-08 15:56
     */
    List<DictTarget> getPageTar(@Param("year") String year, @Param("pageid") String pageid);


    /**
     * @param start
     * @param end
     * @return java.util.List<java.util.Map < java.lang.Object, java.lang.Object>> 获取趋势数据
     * @throws
     * @author cjr
     * @date 2020-03-08 16:23
     */
    List<Map<Object, Object>> getTrend(@Param("start") String start, @Param("end") String end,@Param("tarid") String tarid);


}
